package com.supor.aiot.common.utils;

import android.content.Context;
import android.provider.Settings;

import com.mpaas.mas.adapter.api.MPLogger;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: zook
 * @date: 2022/3/14
 */
public class MPLoggerUtils {

    public static void splashCount() {
//        Map<String, String> map = new HashMap<>();
//        String androidId = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);
//        map.put("deviceId", androidId);

        MPLogger.event("android_app_splash_count", "community_active", null);
    }

    public static void homeCommunityPageCount() {
        MPLogger.event("android_community_show_count", "community_active", null);
    }

    public static void userChannelCount() {
        MPLogger.event("android_community_userchannel_count", "community_active", null);
    }

    public static void homeFamilyPageCount() {
        MPLogger.event("android_family_page_show_count", "community_active", null);
    }

    public static void homeFoodPageCount() {
        MPLogger.event("android_food_page_show_count", "community_active", null);
    }

    public static void homeMinePageCount() {
        MPLogger.event("android_mine_page_show_count", "community_active", null);
    }
}
